package com.cygia.springbootserver.vo;

import lombok.Data;

import java.util.List;

@Data
public class Page<T> {
    private Integer pageNum; // 当前页码
    private Integer pageSize; // 每页数量
    private Integer total; // 总数量
    private List<T> records; // 返回给前端的数据

    public void setRecords(List<T> records) {
        this.records = records;
    }

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public List<T> getRecords() {
        return records;
    }
}
